package heartbeat

import (
	"ones-objects/config"
	"math/rand"
)

func ChooseRandomDataServer() string {
	ds := GetDataServers()
	leng := len(ds)
	if leng <= 0 {
		return config.STR_EMPTY
	}
	return ds[rand.Intn(leng)]
}
